#include <UnitTest++/UnitTest++.h>
#include "../ReturnValueRecord.h"

using namespace MockItNow;

namespace
{
	TEST (ReturnRecordStoresValue)
	{
		ReturnValueRecord<size_t> record;
		record.SetReturnValue(5);
		CHECK_EQUAL(static_cast<size_t>(5), record.GetReturnValue());
	}

	TEST (GetReturnValueThrowsExceptionIfValueWasNeverSet)
	{
		ReturnValueRecord<size_t> record;
		CHECK_THROW(record.GetReturnValue(), std::exception);
	}
}
